
Prexycorpt (Question:  How many of the following people do you think are involved in corruption, or haven�t you heard enough about them to say: The President and Officials in his Office?
Variable Label: Corruption: office of the Presidency
Values: 0-3, 8, 9, -1
Value Labels: 0=None, 1=Some of them, 2=Most of them, 3=All of them, 8=Refused, 9=Don�t know/Haven�t heard, -1=Missing) 

tab prexycorpt
gen prexycorpt01=prexycorpt
recode prexycorpt01 (8 9 =.)
tab prexycorpt01

gen prexycorpt02=prexycorpt
recode prexycorpt02 ( 1 2 3 = 1) (8 9 =.)
tab prexycorpt02

Legcorpt (Question: How many of the following people do you think are involved in corruption, or haven�t you heard enough about them to say: Members of the House if Representatives?
Variable Label: Corruption: Members of Parliament
Value Labels: 0=None, 1=Some of them, 2=Most of them, 3=All of them, 8=Refused, 9=Don�t know/Haven�t heard, -1=Missing)

tab legcorpt
gen legcorpt01= legcorpt
recode legcorpt01 (-1 8 9 =.)
tab legcorpt01

gen legcorpt02=legcorpt 
tab legcorpt02
recode legcorpt02 ( 1 2 3 = 1) (-1 8 9 =.)
tab legcorpt02

Govtcorpt (Question: How many of the following people do you think are involved in corruption, or haven�t you heard enough about them to say: Government officials?
Variable Label: Q44c. Corruption: government officials
Value Labels: 0=None, 1=Some of them, 2=Most of them, 3=All of them, 8=Refused, 9=Don�t know/Haven�t heard, -1=Missing) 

tab officialscorpt
gen govtcorpt= officialscorpt
tab govtcorpt
recode govtcorpt (-1 8 9 =.)
tab govtcorpt

gen govtcorpt01= officialscorpt
recode govtcorpt01 ( 1 2 3 = 1) (-1 8 9 =.)
tab govtcorpt01

Wrngdrctn (Question: Let's start with your general view about the current direction of our country. Some people might think the country is going in the wrong direction. Others may feel it is going in the right direction. So let me
ask YOU about the overall direction of the country: Would you say that the country is going in the wrong direction or going in the right direction?
Variable Label: Q3. Overall direction of the country
Value Labels: 1=Going in the wrong direction, 2=Going in the right direction, 8=Refused, 9=Don�t know, -1=Missing)

tab countrydirection
gen wrngdrctn = countrydirection
tab wrngdrctn
recode wrngdrctn (1=1) (2=0) (8 9=.)
tab wrngdrctn

unemploy (Question: Do you have a job that pays a cash income? [If yes, ask] Is it full-time or part-time? [If no, ask:] Are you presently looking for a job?
Value Labels: 0=No, not looking, 1=No, looking, 2=Yes, part time, 3=Yes, full time, 8=Refused, 9=Don�t know,-1=Missing) 

tab unemploy
gen unemploy01 = unemploy
recode unemploy01 (0 1 =1) (2 3 =0) (-1 8 9=.)
tab unemploy01

fuel (Question: Over the past year, how often, if ever, have you or anyone in your family: Gone without enough fuel to cook your food?
Value Labels: 0=Never, 1=Just once or twice, 2=Several times, 3=Many times, 4=Always, 8=Refused, 9=Don�t know, -1=Missing)

tab fuel
gen fuel01 = fuel
recode fuel01(1 2 3 4 = 1) (9=.)
tab fuel01

polengaged (Question: When you get together with your friends or family, would you say you discuss political matters: 
Value Labels: 0=Never, 1=Occasionally, 2=Frequently, 8=Refused, 9=Don�t know, -1=Missing) 

tab discusspolitics
gen polengaged = discusspolitics
tab polengaged
recode polengaged (1 2 = 1) (-1 8 9=.)
tab polengaged

gen polengaged01 = discusspolitics
tab polengaged01
recode polengaged01 (-1 8 9=.)
tab polengaged01

Govtimprove(Question: How well or badly would you say the current government is handling the following matters, or 
haven�t you heard enough to say: Improving the living standards of the poor? 
Value Labels: 1=Very badly, 2=Fairly badly, 3=Fairly well, 4=Very well, 8=Refused, 9=Don�t know/Haven�t heard enough, -1=Missing)

tab improvepoor
gen govtimprove = improvepoor
tab govtimprove
recode govtimprove (1 2 = 1) (3 4 =0) (8 9=.)
tab govtimprove

gen govtimprove01 = improvepoor
tab govtimprove01
recode govtimprove01 (8 9=.)
tab govtimprove


jobcreate (Question: How well or badly would you say the current government is handling the following matters, 
or haven�t you heard enough to say: Creating jobs?
Value Labels: 1=Very badly, 2=Fairly badly, 3=Fairly well, 4=Very well, 8=Refused, 9=Don�t know/Haven�t heard enough, -1=Missing)

government job creation performance is rated badly 

tab jobcreate
gen jobcreate01 = jobcreate
recode jobcreate01 (1 2 = 1) (3 4 =0) (8 9=.)
tab jobcreate01

redpoverty (Question: How well or badly would you say the current government is handling the following matters, 
or haven�t you heard enough to say: Narrowing gaps between rich and poor? 
Value Labels: 1=Very badly, 2=Fairly badly, 3=Fairly well, 4=Very well, 8=Refused, 9=Don�t know/Haven�t heard enough, -1=Missing

tab redinquality
gen redpoverty = redinquality
tab redpoverty
recode redpoverty (1 2 = 1) (3 4 =0) (-1 8 9=.)
tab redpoverty

gen redpoverty01 = redinquality
tab redpoverty01
recode redpoverty01 (8 9=.)
tab redpoverty01
 
 protest (Question: Here is a list of actions that people sometimes take as citizens when they are dissatisfied with 
 government performance. For each of these, please tell me whether you, personally, have done any of these things during the past year. 
 If not, would you do this if you had the chance: Participated in a demonstration or protest march? Variable 
 Label: Q11c. Attend a demonstration or protest march 
 Value Labels: 0=No, would never do this, 1=No, but would if had the chance, 2=Yes, once or twice, 
 3=Yes, several times, 4=Yes, often, 8=Refused, 9=Don�t know, -1=Missing)
 

tab protest
gen protest01=protest
tab protest01
recode protest01 (0 1 = 0) (2 3 4 =1) (-1 8 9=.)
tab protest01

Age (Question: How old are you?) 
tab Q1
gen age = Q1
recode age (998 =.)

Gender(Question: Respondent�s gender Values: 1, 2 Value Labels: 1=Male, 2=Female)
tab gender
gen female = gender
tab female
recode female (1=0) (2=1)
tab female 

Urban(URBRUR:  Value Labels: 1=Urban, 2=Rural)
tab URBRUR
gen urban = URBRUR
tab urban 
recode urban (1=1) (2=0) 
tab urban 


Edulevel (Question: What is your highest level of education? 
V Value Labels: 0=No formal schooling, 1=Informal schooling only (including Koranic schooling), 2=Some primary schooling, 
3=Primary school completed, 4=Intermediate school or some secondary school/high school, 5=Secondary school/high school completed, 
6=Post-secondary qualifications, other than university, 7=Some university, 8=University completed, 9=Post-graduate, 98=Refused, 
99=Don�t know, -1=Missing) 

gen edulevel01 = edulevel 
recode edulevel01 (1 2 3 4 5 6 7 8 9 =1) (99 =.)
tab edulevel01 


++
logit protest01 unemploy01 jobcreate01 redpoverty  govtimprove ib0.govtcorpt01 ib0.polengaged01  ib0.fuel01 female urban edulevel01 c.age c.age#c.age
logit protest01 unemploy01##jobcreate01 govtimprove ib0.polengaged01 redpoverty ib0.govtcorpt01 female urban edulevel01 c.age c.age#c.age ib0.fuel01

logit protest01 unemploy01##govtimprove jobcreate01 ib0.polengaged01 redpoverty ib0.govtcorpt01 female urban edulevel01 c.age c.age#c.age ib0.fuel01

logit protest01 unemploy01##redpoverty  jobcreate01 govtimprove ib0.polengaged01 ib0.govtcorpt01 female urban edulevel01 c.age c.age#c.age ib0.fuel01

logit protest01 unemploy01##ib0.polengaged01 govtimprove jobcreate01 redpoverty ib0.govtcorpt01 female urban edulevel01 c.age c.age#c.age ib0.fuel01

margins unemploy01#polengaged01
marginsplot, recast(bar) horizontal xdimension (unemploy01 polengaged01)

margins, at(age=(18(10)78))
margins, at(age=(18(20)78))
marginsplot, recast(line) recastci(rarea)
